﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcs.Web.Admin.TimeLine
{
    public partial class indexsupply : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int sid = 0;
                if (!string.IsNullOrEmpty(Request.QueryString["sid"]))
                {
                    int.TryParse(Request.QueryString["sid"].ToString(), out sid);
                    if (sid != 0)
                    {
                        BLL.mobileSendInfo bll = new BLL.mobileSendInfo();
                        DataSet ds= bll.GetListl("and supplyPlanId=" + sid + " order by sendTime desc");
                        if (ds != null)
                        {
                            rptmobile.DataSource = ds.Tables[0];
                            rptmobile.DataBind();
                        }
                    }
                }
            }

        }
    }
}